# Contributor: tcely <tcely@users.noreply.github.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=jdupes
pkgver=1.28.0
pkgrel=0
pkgdesc="identifying and taking actions upon duplicate files"
options="!check" # No testsuite
url="https://github.com/jbruchon/jdupes"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="linux-headers libjodycode-dev xxhash-dev"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/jbruchon/jdupes/archive/v$pkgver.tar.gz
	system-xxhash.patch
	"
builddir="$srcdir/$pkgname"

build() {
	make ENABLE_DEDUPE=1
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
5de369b92653382845bf89f4a1fe894cee9914cd0124c3ca0217d05e5cef14050a14ad538e154c970f81b1b300e02fd055befdbbcd1c79bd790e6e26a4be5b84  jdupes-1.28.0.tar.gz
6c8430b76fba6cf4458d1a8e3f0c431250a59029a18cfc38f4befe23a94da25153cb1e54eb4b6de3c66a8015ca1c083c46d2cf215f594317c48eed580078ba6b  system-xxhash.patch
"
